package Sdo.pojo;

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.image.ImageView;

public class PFile {
	
	   private final SimpleIntegerProperty uid;
	   private final SimpleIntegerProperty gid;
	   
	   private final SimpleStringProperty filename;
	   private final SimpleStringProperty atime;
	   private final SimpleStringProperty mtime;
	   private  final SimpleStringProperty size;
	   private final SimpleBooleanProperty dir;
	   private final SimpleStringProperty permissions;
	   private ImageView image;

	  
	    
	   public PFile(Integer uid,Integer gid,String filename,String atime,String mtime,String size,Boolean dir,String permissions,ImageView image){
		   
		   this.uid=new SimpleIntegerProperty(uid);
		   this.gid=new SimpleIntegerProperty(gid);
		   this.filename=new SimpleStringProperty(filename);
		   this.atime=new SimpleStringProperty(atime);
		   this.mtime=new SimpleStringProperty(mtime);
		   this.size=new SimpleStringProperty(size);
		   this.dir=new SimpleBooleanProperty(dir);
		   this.permissions=new SimpleStringProperty(permissions);
		   this.image=image;
	   }
	   
	   public void setImage(ImageView value) {
	        image = value;
	    }

	    public ImageView getImage() {
	        return image;
	    }
	  
	
	public final SimpleStringProperty filenameProperty() {
		return this.filename;
	}
	
	public final String getFilename() {
		return this.filenameProperty().get();
	}
	
	public final void setFilename(final String filename) {
		this.filenameProperty().set(filename);
	}
	
	public final SimpleStringProperty atimeProperty() {
		return this.atime;
	}
	
	public final String getAtime() {
		return this.atimeProperty().get();
	}
	
	public final void setAtime(final String atime) {
		this.atimeProperty().set(atime);
	}
	
	public final SimpleStringProperty mtimeProperty() {
		return this.mtime;
	}
	
	public final String getMtime() {
		return this.mtimeProperty().get();
	}
	
	public final void setMtime(final String mtime) {
		this.mtimeProperty().set(mtime);
	}
	

	
	public final SimpleStringProperty permissionsProperty() {
		return this.permissions;
	}
	
	public final String getPermissions() {
		return this.permissionsProperty().get();
	}
	
	public final void setPermissions(final String permissions) {
		this.permissionsProperty().set(permissions);
	}
	public final SimpleStringProperty sizeProperty() {
		return this.size;
	}
	
	public final String getSize() {
		return this.sizeProperty().get();
	}
	
	public final void setSize(final String size) {
		this.sizeProperty().set(size);
	}

	public final SimpleIntegerProperty uidProperty() {
		return this.uid;
	}
	

	public final int getUid() {
		return this.uidProperty().get();
	}
	

	public final void setUid(final int uid) {
		this.uidProperty().set(uid);
	}
	

	public final SimpleIntegerProperty gidProperty() {
		return this.gid;
	}
	

	public final int getGid() {
		return this.gidProperty().get();
	}
	

	public final void setGid(final int gid) {
		this.gidProperty().set(gid);
	}

	public final SimpleBooleanProperty dirProperty() {
		return this.dir;
	}
	

	public final boolean isDir() {
		return this.dirProperty().get();
	}
	

	public final void setDir(final boolean dir) {
		this.dirProperty().set(dir);
	}
	
	
	
	

}
